import request from '@/utils/request'

// 查询健康评分列表
export function listUserHealthHistory(query) {
  return request({
    url: '/suggestions/UserHealthHistory/list',
    method: 'get',
    params: query
  })
}

// 查询健康评分详细
export function getUserHealthHistory(id) {
  return request({
    url: '/suggestions/UserHealthHistory/' + id,
    method: 'get'
  })
}

// 新增健康评分
export function addUserHealthHistory(data) {
  return request({
    url: '/suggestions/UserHealthHistory',
    method: 'post',
    data: data
  })
}

// 修改健康评分
export function updateUserHealthHistory(data) {
  return request({
    url: '/suggestions/UserHealthHistory',
    method: 'put',
    data: data
  })
}

// 删除健康评分
export function delUserHealthHistory(id) {
  return request({
    url: '/suggestions/UserHealthHistory/' + id,
    method: 'delete'
  })
}
